FROM openjdk:11.0-jdk

WORKDIR /opt/vet
COPY ./build/libs/vet-service-1.3.jar /opt/vet/vet.jar
ENV log.path /opt/vet/logs
ENV NACOS nacos
ENV NACOS_PORT 8848
VOLUME ["/opt/vet"]
EXPOSE 8001
ENTRYPOINT ["java", "-jar", "/opt/vet/vet.jar"]
